﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class MainMaster : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Page.LoadComplete += new EventHandler(Page_LoadComplete);
    }

    void Page_LoadComplete(object sender, EventArgs e)
    {
        if (Session["xmldata"] != null)
        {
            NavBar1.SiteMapXmlFile = Session["xmldata"].ToString();
        }
        else
        {
            NavBar1.SiteMapXmlFile = "~/Data/Xml/Navbar.xml";
        }
    }



    protected void lnkhome_Click(object sender, EventArgs e)
    {
        Session["xmldata"] = "~/Data/Xml/Navbar.xml";
    }
    protected void lnkYonetim_Click(object sender, EventArgs e)
    {
        Session["xmldata"] = "~/Data/Xml/CrmAdminNavbar.xml";
    }
}
